package com.jianqiao.delivery.pay.domain.initr2p;

import lombok.Data;

/**
 * author: cyx
 * create: 2024/11/22 17:35
 **/
@Data
public class NationalIdentifiersEntity {
    private String type;

    private String value;

    public NationalIdentifiersEntity(String type, String value) {
        this.type = type;
        this.value = value;
    }

    public static NationalIdentifiersEntityBuild builder() {
        return new NationalIdentifiersEntityBuild();
    }

    public static class NationalIdentifiersEntityBuild{
        private String type;

        private String value;

        NationalIdentifiersEntityBuild() {

        }

        public NationalIdentifiersEntityBuild type(String type) {
            this.type = type;
            return this;
        }

        public NationalIdentifiersEntityBuild value(String value) {
            this.value = value;
            return this;
        }

        public NationalIdentifiersEntity build() {
            return new NationalIdentifiersEntity(this.type ,this.value);
        }
    }
}
